/*
 * @Author: miteng 973203639@qq.com
 * @Date: 2023-12-21 09:19:21
 * @LastEditors: 郝奔 1425466221@qq.com
 * @LastEditTime: 2024-07-16 14:29:35
 * @Description: 
 * Copyright (c) 2024-present HBIS Digital Technology Co.,Ltd. All rights reserved. 
 */
// import tab from './tab'
// import auth from './auth'
// import cache from './cache'
import { App } from 'vue'; // 假设app是Vue 3的App实例
import modal from './modal';
// import download from './download'

const plugins = [
  { key: '$modal', value: modal },
  // 其他插件可以在这里添加，例如：{ key: '$auth', value: auth },
];

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
export default function installPlugins(app: App): void {
  plugins.forEach(({ key, value }) => {
    if (value) {
      app.config.globalProperties[key] = value;
    }
  });
  // 页签操作
  // app.config.globalProperties.$tab = tab
  // 认证对象
  // app.config.globalProperties.$auth = auth
  // 缓存对象
  // app.config.globalProperties.$cache = cache
  // 模态框对象
  // app.config.globalProperties.$modal = modal;
  // 下载文件
  // app.config.globalProperties.$download = download
}
